<form id="app-form" class="layui-form layuimini-form">

    <div class="layui-form-item">
        <label class="layui-form-label">AppId</label>
        <div class="layui-input-block">
            <input type="text" name="app_id" class="layui-input" lay-verify="required" placeholder="请输入AppId" value="{:sysconfig('wxapp','app_id')}">
            <tip>填写公众号AppId。</tip>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">AppSecret</label>
        <div class="layui-input-block">
            <input type="text" name="app_secret" class="layui-input" lay-verify="required" placeholder="请输入AppSecret" value="{:sysconfig('wxapp','app_secret')}">
            <tip>填写公众号AppSecret。</tip>
        </div>
    </div>
    
    <div class="layui-form-item">
        <label class="layui-form-label">小程序登录方式</label>
        <div class="layui-input-block">
            <input type="checkbox" name="login_type[]" title="授权登录" value="1" lay-skin="primary" checked disabled>
            <input type="checkbox" name="login_type[]" title="手机号登录" value="2" lay-skin="primary" {if strpos(sysconfig('wxapp','login_type'),'2')}checked{/if}> 
            <input type="checkbox" name="login_type[]" title="账号登录" value="3" lay-skin="primary" {if strpos(sysconfig('wxapp','login_type'),'3')}checked{/if}>
        </div>
    </div>

    <div class="hr-line"></div>
    <div class="layui-form-item text-center">
        <button type="submit" class="layui-btn layui-btn-normal layui-btn-sm" lay-submit="system.config/save" data-refresh="false">确认</button>
        <button type="reset" class="layui-btn layui-btn-primary layui-btn-sm">重置</button>
    </div>

</form>